﻿using System;
using System.Globalization;
using System.Xml.Serialization;

namespace ICalendar.CalendarProperties
{
    /// <summary>
    /// This property provides just a summary of the calendar component.
    /// </summary>
    [XmlRoot("summary")]
    [Serializable]
    public class Summary : TextBase
    {
        public Summary(string summary)
            : base(summary)
        {
        }

        public Summary(string summary, CultureInfo language, Uri alternateTextRepresentation)
            : base(summary, language, alternateTextRepresentation)
        {
        }

        public static implicit operator Summary(string text)
        {
            return new Summary(text);
        }
    }
}
